<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('支付跳转')" />
</head>
<body class="white-bg">
    <img id="tipImg" width="100%" src="/img/tip.jpg" style="display: none"/>
    <div id="formDiv" th:text="${form}" style="display: none"></div>

    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        let ua = window.navigator.userAgent.toLowerCase();
        if(ua.match(/MicroMessenger/i) == 'micromessenger'){
            $("#tipImg").show();
        }else{
            let HTML_DECODE = {
                "&lt;"  : "<",
                "&gt;"  : ">",
                "&amp;" : "&",
                "&nbsp;": " "
            };
            let form = $("#formDiv").html();
            for(let tag in HTML_DECODE){
                form = form.replace(new RegExp(tag,"g"), HTML_DECODE[tag]);
            }
            document.write(form);
        }
    </script>

</body>
</html>